package com.huiyun.project.im.api.client.vo.req.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;

/**
 * @FileName:
 * @Description:
 * @Author linjie
 * @Date 2020/7/179:03 PM
 * @Version 4.0.0
 */
@Data
@ApiModel
public class ImUserReq {
    @ApiModelProperty(value = "账号类型 1.普通账号 2.客服账号")
    private Integer type;
    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank
    private String username;

    @ApiModelProperty(value = "业务ID", required = true)
    @NotBlank
    @Length(min = 20, max = 32)
    private String bid;

    @ApiModelProperty(value = "昵称", required = true)
    @NotBlank
    @Length(min = 6, max = 20)
    private String nick;

    @ApiModelProperty(value = "客服别名")
    @Length(min = 6, max = 20)
    private String alias;

    @ApiModelProperty(value = "密码 密文", required = true)
    @NotBlank
    private String password;
    @ApiModelProperty(value = "密码加密串", required = true)
    private String salt;
    @ApiModelProperty(value = "头像", required = true)
    private String avatar;
    @ApiModelProperty(value = "客服组 0.非客服 1：公共（默认） 2售前，3售后  ")
    @NotBlank
    private String userOrgId;
}
